package com.cloudeoffice.server.mapper;

import com.cloudeoffice.server.pojo.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudeoffice.server.pojo.Role;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liujingnu
 * @since 2022-03-15
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getAllMenusWithRole() ;

    List<Menu> getMenusByAdmin(Integer id);

    //获取所有菜单
    List<Menu> getAllMenus();
}
